<?php $this->load->view("common/header") ?>
<script type="text/javascript">
$(function() {
	//	$( "#job_start" ).datepicker({ dateFormat: 'yy-mm-dd' });
	});
</script>
<body>
  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td  align="left" valign="top"><?php $this->load->view("nav/main") ?></td>
      <td width="1265" valign="top">  
	  <div id="crum">
<?php echo $crum ?>
</div><br>

	  


  
  <form name="form1" method="post" action="<?php base_url()."job/search/" ?>">
    <table width="400" border="0" align="left" cellpadding="5" cellspacing="0">
      <tr>
        <td width="96" align="center" class="panelHeaderBgColor"><strong>Search </strong></td>
        <td width="222" align="left" bgcolor="#91A200" class="panelHeaderBgColor">
          <input name="search" type="text" id="search" size="50">
        </td>
        <td width="70" align="center"><input name="button" type="submit" class="tblBtn" id="button" value="Search"></td>
      </tr>
    </table>
  </form>
 <?php if(! empty($searchs) ) { ?>
 <br>
  <table width="100%" border="0" cellpadding="5" cellspacing="0" rules="groups">
    <tr class="tblHeader panelHeaderBgColor">
    <td align="left">Client</td>
    <td align="left">Job Subject</td>
    <td align="left">Type/Pri</td>
    <td align="left">Allocated User</td>
    <td align="right">&nbsp;</td>
  </tr>
<?php foreach($searchs as $search) { 
	$trClass = "tblBody";
	
?>
  <tr class="<?php echo $trClass ?>">
    <td width="100" align="left"><a href="#"><img src="<?php echo base_url() ?>assets/img/comments.gif" width="16" height="16" border="0" style="margin-bottom:-4px"></a> <?php echo $search['company_name'] ?></td>
    <td width="173" align="left"><?php echo $search['job_subject'] ?></td>
    <td width="83" align="left"><?php echo $search['job_type'] ?> / <?php echo $search['job_pri'] ?></td>
    <td width="97" align="left"><?php echo $search['firstname']." ".$search['lastname']   ?></td>
    <td width="68" align="right"><select class="job_action" name="job_action" id="job_action_<?php echo $job['id'] ?>">
      <option value="0,<?php echo $search['id'] ?>">Action</option>
      <option value="1,<?php echo $search['id'] ?>">Edit Job</option>
      <option value="3,<?php echo $search['id'] ?>">Delete Job</option>
    </select></td>
  </tr>


  <?php } ?>
</table>
<?php } ?> 
  </td>
    </tr>
</table>

<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
